package com.iecas.handler;

import cn.hutool.json.JSONUtil;
import cn.hutool.log.StaticLog;
import com.iecas.launch.Client;
import com.iecas.launch.Server;
import com.iecas.request.Root;
import com.iecas.response.BaseResponse;
import com.iecas.response.JoinResp;

import java.nio.channels.SocketChannel;

public class JoinRespHandler extends BaseHandler {

    @Override
    BaseResponse handle(Root baseRequest, Server server, Client client, SocketChannel socketChannel) {
        JoinResp resp = (JoinResp) baseRequest;
        StaticLog.info("接收到加入响应: {}", JSONUtil.toJsonStr(resp));
        return null;
    }
}
